package com.ygswglxt.notification.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("notification")
public class Notification {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String type; // APPROVAL_PENDING, APPROVAL_RESULT, SYSTEM, ATTENDANCE
    private String title;
    private String content;
    private Long relatedId;
    private String relatedType; // OVERTIME, LEAVE, SALARY
    private Boolean isRead;
    private Date createTime;
    private Date readTime;
}

